package com.neusoft;

import java.util.*;

public class DemoHashSet {

	public static void main(String[] args) {
		
		//Set<Integer> sets = new HashSet();
		TreeSet<Integer> sets = new TreeSet();
		sets.add(45);
		sets.add(56);
		sets.add(33);
		sets.add(23);
		sets.add(78);
		
		sets.remove(23);
		
		Iterator<Integer> it = sets.iterator();
		while(it.hasNext()){
			Integer next = it.next();
			System.out.println(next);
		}
		
	}
}
